package com.kuang.design.structural.bridge;

/**
 * 省去了类维度的创建(省去很多类)
 */
public class MainTest {
    public static void main(String[] args) {
        IPhone iPhone = new IPhone();
        iPhone.setSale(new OfflineSale("线下",9999));
        iPhone.setSale(new OnlineSale("线上",9999));

        String phone = iPhone.getPhone();
        System.out.println(phone);
    }
}
